<?php

namespace App\Models\miniapp;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Address extends Model
{
    use HasFactory;

    public $table = 'miniapp_address';
    public $fillable = [
        'user_id',
        'name',
        'phone',
        'city',
        'addr',
    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
